package com.example.demo.web.vo;

import org.springframework.beans.BeanUtils;

import com.example.demo.sys.service.bo.UserBO;

import lombok.Data;

@Data
public class UserVO {
	private Long id;
    private String username;
    private Long phone;
    private Long createdAt;
    private Long updatedAt;
    
    public static UserVO convert(UserBO item) {
    	if (item == null) {
            return null;
        }
    	UserVO result = new UserVO();
        BeanUtils.copyProperties(item,result);
        
        return result;
    }
}
